#include "KeepAlive.h"

KeepAlive::KeepAlive(OSCthulhuServer* server)
{
    this->server = server;
    waitTime = 3;
    this->start();
}

void KeepAlive::run() {
    while(true) {
        server->sendAlive(waitTime);
        server->removeDead(waitTime);
        sleep(waitTime);
    }
    exec();
}
